package com.cy.jt.resource.interceptor;

import io.jsonwebtoken.Claims;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@FeignClient(name = "sso-auth",
             contextId = "TokenInterceptorFeignService")
public interface TokenInterceptorFeignService {

    @RequestMapping("/auth/info")
    public Map<String, Object> getAuthentication(String token);

}
